<file_enum> : Enumerate Files

This command enumerates files/folders from the given folder using a defined mask (wildcards).

Syntax: 

<file_enum>("FileOrFolderSelection", EnumOptions, VarFiles, VarNumOfFiles)

FileOrFolderSelection
File/folder selection pattern containing wildcards.  Example: ôc:\windows\a*.?ifö or "c:\windows\sys*".

EnumOptions
1 - only subfolders are enumerated

2 - only files are enumerated

3 - both subfolders and files are enumerated

VarFiles
Variable (array) that receives files/folders from the Folder that match the mask.

VarNumOfFiles
Variable that receives the number of files/folders saved in the VarFiles.

Example: 

<#> This macro shows how to use 'file_enum' command.
<#>
<cmds>
<file_enum>("%_vFolder_Temp%\*.tmp",2,vFiles,vNumOfFiles)
<msg>(-100,-100,"There are %vNumOfFiles% TMP files in %_vQuoteChar%%_vFolder_Temp%%_vQuoteChar% directory.","Message",1)
<varset>("vMsg=_vStrEmpty","")
<begloop>(vNumOfFiles)
   <var_oper>(vMsg,"%vMsg%",STR_APPEND,"%_vKeyReturn%%vFiles[_vLoopCounter0]%","", "0")
<endloop>

<msg>(-100,-100,"vMsg","Message",1)